package org.dxy.infrastructure.persistent.db.mybatispuls.service;

import com.github.yulichang.base.MPJBaseService;
import org.dxy.infrastructure.persistent.db.mybatispuls.po.query.ProductionLineBasicViewPo;

import java.util.List;

/**
 * @ description:
 * @ author: dxy
 * @ createTime: 2025/7/20 19:43
 */
public interface ProductionLineBasicViewService extends MPJBaseService<ProductionLineBasicViewPo> {
    
    /**
     * 根据产线编码检查是否存在
     * @param lineCode 产线编码
     * @return 是否存在
     */
    boolean existsByLineCode(String lineCode);
    
    /**
     * 获取启用状态的产线列表
     * @return 启用状态的产线列表
     */
    List<ProductionLineBasicViewPo> getEnabledProductionLines();
}
